package com.wilmar.process.entity;

import java.util.Date;

import javax.persistence.Enumerated;

import com.wilmar.process.enumerate.EnumProcessAuthorityType;

/**
 * ProcessAuthority entity. @author MyEclipse Persistence Tools
 */

public class ProcessAuthority implements java.io.Serializable {

	/**
	 * @serialField
	 */
	private static final long serialVersionUID = 3530237959417245731L;
	// Fields

	private Long id;
	private String processDefinitionKey;
	private String outerSystem;
	private String organizationCode;
	private String roleCode;
	private EnumProcessAuthorityType authorizeType;
	private Integer version;
	private String createPerson;
	private Date createTime;
	private String updatePerson;
	private Date updateTime;
	private String organizationName;
	private String roleName;

	// Constructors

	/** default constructor */
	public ProcessAuthority() {
	}

	/** minimal constructor */
	public ProcessAuthority(Integer version) {
		this.version = version;
	}

	/** full constructor */
	public ProcessAuthority(String processDefinitionKey, String outerSystem,
			String organizationCode, String roleCode,
			EnumProcessAuthorityType authorizeType, Integer version,
			String createPerson, Date createTime, String updatePerson,
			Date updateTime, String organizationName, String roleName) {
		this.processDefinitionKey = processDefinitionKey;
		this.outerSystem = outerSystem;
		this.organizationCode = organizationCode;
		this.roleCode = roleCode;
		this.authorizeType = authorizeType;
		this.version = version;
		this.createPerson = createPerson;
		this.createTime = createTime;
		this.updatePerson = updatePerson;
		this.updateTime = updateTime;
		this.organizationName = organizationName;
		this.roleName = roleName;
	}

	// Property accessors

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getProcessDefinitionKey() {
		return this.processDefinitionKey;
	}

	public void setProcessDefinitionKey(String processDefinitionKey) {
		this.processDefinitionKey = processDefinitionKey;
	}

	public String getOuterSystem() {
		return this.outerSystem;
	}

	public void setOuterSystem(String outerSystem) {
		this.outerSystem = outerSystem;
	}

	public String getOrganizationCode() {
		return this.organizationCode;
	}

	public void setOrganizationCode(String organizationCode) {
		this.organizationCode = organizationCode;
	}

	public String getRoleCode() {
		return this.roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	@Enumerated
	public EnumProcessAuthorityType getAuthorizeType() {
		return this.authorizeType;
	}

	public void setAuthorizeType(EnumProcessAuthorityType authorizeType) {
		this.authorizeType = authorizeType;
	}

	public String getCreatePerson() {
		return this.createPerson;
	}

	public void setCreatePerson(String createPerson) {
		this.createPerson = createPerson;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdatePerson() {
		return this.updatePerson;
	}

	public void setUpdatePerson(String updatePerson) {
		this.updatePerson = updatePerson;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	/**
	 * @return the version
	 */
	public Integer getVersion() {
		return version;
	}

	/**
	 * @param version
	 *            the version to set
	 */
	public void setVersion(Integer version) {
		this.version = version;
	}
	
	public String getOrganizationName() {
		return organizationName;
	}

	public void setOrganizationName(String organizationName) {
		this.organizationName = organizationName;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

}